package com.lzh.dlykserver.mapper;

import com.lzh.dlykserver.commons.DataScope;
import com.lzh.dlykserver.entity.TUser;
import com.lzh.dlykserver.query.BaseQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 墨墨
 * @description 针对表【t_user(用户表)】的数据库操作Mapper
 * @createDate 2024-07-24 09:57:15
 * @Entity com.lzh.dlykserver.entity.TUser
 */
public interface TUserMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(TUser record);

    int insertSelective(TUser record);

    TUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TUser record);

    int updateByPrimaryKey(TUser record);

    TUser selectByLoginAct(String username);

    @DataScope(tableAlias = "tu", tableField = "id")
    List<TUser> selectUserByPage(BaseQuery query);

    TUser selectDetailByPrimaryKey(Integer id);

    int deleteByIds(@Param("idList") List<String> idList);

    List<TUser> selectOwner();
}
